package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string
	Password string
}

func (u *User) Gets() error {
	return DB.Where("username=?", u.Username).Limit(1).Find(&u).Error
}
